function unique1(params) {
    return Array.from(new Set(params))
}
console.log(unique1([1, 1, 1, 2]));
// includes filter splice lastIndexOf